<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var i=parseInt(prompt("请输入第一个数字"))
        var j=parseInt(prompt("请输入第二个数字"))
        var add=function(a,b){
            for(var i=1 ;i<=a ;i++){
                for(var j=1; j<=b; j++){
                    document.write("*")
                }
                document.write("<br/>")
            }
            document.write("<br/>")
        }
        // add(3,3);
        // add(5,4);
        // add(6,6);
        add(i,j);
    </script>
</body>
</html>